package cn.appsys.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.appsys.biz.VersionBiz;
import cn.appsys.dao.VersionDao;
import cn.appsys.entity.AppVersion;

@Service("versionBiz")
public class VersionBizImpl implements VersionBiz{

	@Autowired
	private VersionDao versionDao;
	
	public List<AppVersion> getByIdVersion(int id) {
		
		return versionDao.getByIdVersion(id);
	}

	public int addVersion( AppVersion version) {
		
		return versionDao.addVersion( version);
	}

	public AppVersion getByDateVersion(int appId) {
		
		return versionDao.getByDateVersion(appId);
	}

	public int updateVersion(AppVersion appVersion) {
		
		return versionDao.updateVersion(appVersion);
	}



}
